package com.github.ecbp.store.service.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.github.ecbp.common.data.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author Created by Alex·He on 2020/5/29 10:17
 * @Version 1.0
 * @Description 优惠券领取、使用记录表(CouponRecord)实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("coupon_record")
public class CouponRecord extends BaseEntity {

    private Long couponId;

    private Long orderId;

    private Long memberId;

    /**
     * 获取类型：0->后台赠送；1->主动获取
     */
    private Integer getType;

    /**
     * 使用状态：0->未使用；1->已使用；2->已过期
     */
    private Integer useStatus;

    /**
     * 使用时间
     */
    private Date useTime;
}
